/**
 * Created by yoyoyk on 2017/6/30.
 */
/**
 * Created by Administrator on 2017/3/30 0030.
 */
import Relay from "react-relay";

export default class findSampleCreateByOrderId extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { findSampleCreateByOrderId }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId:this.props.orderId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on findSampleCreateByOrderIdPayload {
            responseData {
                value
                errorCode
                sampleCreate{
                    uid
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
             fragment on findSampleCreateByOrderIdPayload {
                    responseData {
                        value
                        errorCode
                        sampleCreate{
                       uid
                        }
                    }
             }
            `]
        }];
    }

}